/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DBConnection;

import java.sql.DriverManager;
import java.sql.SQLException;

/** 
 *
 * @author Mukesh
 */
public class Connection {
    
    static java.sql.Connection con=null;
    public static java.sql.Connection getConnection()
    {
        try
        {
         Class.forName("oracle.jdbc.driver.OracleDriver");
         //con = DriverManager.getConnection ("jdbc:oracle:thin:@103.25.128.32:1521:ORCL","rit@yahoo.com","Rit@gmail.com");
         con = DriverManager.getConnection ("jdbc:oracle:thin:@192.168.1.141:1521:xe","ramgovind","ramgovind");
        }
        catch(Exception e)
        {
           System.out.print(e);
        }
        return con;
    }
    
}
